package com.biz.primus.management.base.config;

import com.biz.primus.account.config.CasConfig;
import com.biz.primus.account.config.WebSecurityConfig;
import com.biz.primus.ms.base.feign.PrimusSoaFeignErrorDecoder;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author yanweijin
 * @date 2017/9/13
 */
@Configuration
@ComponentScan("com.biz.primus.account")
@Import({MvcConfig.class, CasConfig.class, WebSecurityConfig.class})
public class BaseConfiguration {

	@Bean
	public PrimusSoaFeignErrorDecoder getErrorDecoder() {
		return new PrimusSoaFeignErrorDecoder();
	}

}
